﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsItem.ascx.cs" Inherits="UserControl_NewsItem" %>
<%@ Import Namespace="CommonTagTime" %>
<div class="nItem">

    <%if (!isNoImage)
    { %>
    <div class="bnImage">
        <div class="nImage">
            <a href="/news/<%=clsText.ToSEO(objNews.Title) %>/<%=objNews.TipNewsID %>"><img src="<%=img%>" alt="" style="border:none;"></a>
        </div>
    </div>
<%} %>
<div class="nlShort1">
    <span class="item-time"><%=clsConvert.String(objNews.CreatedDate.ToString("dd.MM.yyyy")) %></span>
    <a href="/news/<%=clsText.ToSEO(objNews.Title) %>/<%=objNews.TipNewsID %>" ><%=Server.HtmlEncode(objNews.Title)%></a>
    
    <div class="nlDes">
        <%= Server.HtmlEncode(objNews.ShortDescription)%>
        <% if (Request.Url.ToString().ToLower().Contains("default.aspx"))
           { %>
            ... <a href="/news/<%=clsText.ToSEO(objNews.Title) %>/<%=objNews.TipNewsID %>" style="color:#990000 ! important"><%=sp.GetLang("ReadMore")%></a>
            <% } %>
    </div>
            
</div>
</div>
